from libs.sms import Sms
from celery_tasks.celery_settings import app
# 任务(生产者)
@app.task
def celery_send_sms_code(mobile, code):
    sm = Sms()
    sm.sent(mobile, code)
    return f"向{mobile}发送短信成功"
